/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.rational.parser.type.standart;

import org.rational.parser.type.wraps.TrimType;

/**
 *
 * @author Overmind
 */
public class Decimal
    extends TrimType<Integer>
{  
    public Decimal()
    {
        super("Decimal");
    }
    
    @Override
    public Integer valueOfTrimString(String string) throws NumberFormatException
    {
        return Integer.parseInt(string);
    }

    @Override
    public String objectToString(Integer value)
    {
        return value.toString();
    }
}
